<%@page import="sys.wx.xy.XY"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%    if (null == session.getAttribute(XY.SESSION_LOGIN)) {
        return;
    }
%>
<%@include file="/WEB-INF/jspf/must/basePath.jspf" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <%@include file="/WEB-INF/jspf/zj/ligerui/LigerUI.jspf" %>
        <link rel="stylesheet" href="zj/uikit/css/uikit.gradient.min.css" />

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title></title>
            <style>
                body { padding-top: 110px; }
            </style>
            <script type="text/javascript">
                function doEmtpy() {
                    $("#password").val("");
                    $("#password2").val("");
                }
                function checklogin() {
                    var password = $("#password").val();
                    var password2 = $("#password2").val();
                    var str = "";
                    if (password.trim() == "") {
                        str = str + "<p>密码 需要输入</p>";
                    }
                    if (password2.trim() == "" || password2.length == 0) {
                        str = str + "<p>请再次确认密码</p>";
                    }
                    if (password != password2) {
                        str = str + "<p>两次密码输入不一样</p>";
                    }
                    if (str.length > 0) {
                        lookThisgg(str);
                        return false;
                    } else {
                        post_json("weixinkeji/dev/power/user/sysuser/updatepassword/hasLogin.imy"
                                , {"password": password}
                        , 400, 200);
                    }
                    return false;
                }
                function lookThisgg(c) {
                    $("#IDError").html(c);
                    setTimeout(function() {
                        lookThisgg("");
                    }, 7000);
                }
            </script>
    </head>
    <body>

        <div  align="center" >
            <div id="IDError" style="height: 150px;">

            </div>
            <div>
                <form action="sys/login/user/login.imy" method="post" onsubmit="return checklogin();">
                    <table class="table">
                        <tr>
                            <td>新密码</td><td><input type="password"  name="password"id="password" placeholder="您的密码" maxlength="16"></td><td></td>
                        </tr>
                        <tr>
                            <td>确定密码</td><td><input type="password" name="password2"id="password2" placeholder="重复输入密码" maxlength="16"></td><td></td>
                        </tr>
                        <tr>
                            <td></td><td><button id="buttonajax">提交</button></td>
                        </tr>
                    </table>

                </form>
            </div>
        </div>
    </body>
</html>
